import 'package:get/get.dart';
import 'package:package_info_plus/package_info_plus.dart';

import '../../../logger/Logger.dart';

class AboutAppController extends GetxController {

  Rx<String> apkVersion = "0.0.1".obs;

  @override
  void onInit() {
    super.onInit();
    initAppVersionTask();
  }

  Future<void> initAppVersionTask() async {
    PackageInfo packageInfo = await PackageInfo.fromPlatform();
    //String version = packageInfo.version;
    apkVersion.value = packageInfo.version;
  }

  @override
  void onReady() {
    super.onReady();
  }

  @override
  void onClose() {
    super.onClose();
  }

}
